package com.gudaomai.wuye.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.activerecord.Model;

import com.baomidou.mybatisplus.annotations.TableField;

import com.baomidou.mybatisplus.annotations.TableName;
import com.gudaomai.wuye.entity.BaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author zenghualu
 * @since 2017-09-01
 */
@TableName("tb_layout")
public class Layout extends BaseEntity<Layout> {

	private static final long serialVersionUID = 1L;

	/**
	 * 单位
	 */
	private String unit;
	/**
	 * 名称
	 */
	private String name;
	private Date updateTime;
	private Date createTime;
	private String pid;
	/**
	 * 更新者
	 */
	private String updateUser;
	private String code;
	/**
	 * 创建者
	 */
	private String createUser;
	private String id;

	
	@TableField(exist = false)
	private List<Layout> subLayouts;
	@TableField(exist = false)
	private List<House> houses;

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<House> getHouses() {
		return houses;
	}

	public void setHouses(List<House> houses) {
		this.houses = houses;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
